﻿using BBICMS.Core;
using BBICMS.Model.Validation;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace BBICMS.Model
{
    public partial class Team : AuditableEntity<int>
    {
    
        [Display(Name = "昵称", Prompt = "昵称")]
        [Required(ErrorMessage = "请输入昵称")]
        public string Nickname { get; set; }
         [Display(Name = "真实姓名", Prompt = "真实姓名")]
        public string RealName { get; set; }
        [Display(Name = "邮箱", Prompt = "邮箱")]
        [Email(ErrorMessage = "邮箱格式不正确")]     //自定义验证
        public string Email { get; set; }
        [Display(Name = "手机", Prompt = "手机")]
        public string Mobile { get; set; }
        [Display(Name = "现居地址", Prompt = "现居地址")]
        public string Address { get; set; }

        [Display(Name = "技能掌握", Prompt = "技能掌握")]
        public string Skills { get; set; }
        [Display(Name = "职业", Prompt = "职业")]
        public string Post { get; set; }
        [Display(Name = "个人简介", Prompt = "个人简介")]
        public string Description { get; set; }
        [Display(Name = "照片", Prompt = "照片")]
        public string PhotoUrl { get; set; }
        [Display(Name = "排序", Prompt = "排序")]
        [Required(ErrorMessage = "请输入排序")]
        [RegularExpression(@"^-?\d*$", ErrorMessage = "格式不正确")]
        public int Importance { get; set; }
        [Display(Name = "激活", Prompt = "激活")]
        public bool Active { get; set; }
    
    }
}
